﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ihg-container has-ihg-sidemenu">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Coach &nbsp;&nbsp;-&nbsp;&nbsp;View</li>
      </ol>
    </div>

    <div class="ihg-content-layout">

      <div class="form-horizontal ihg-form form-personal-info">

        <div class="block-heading">
          <h5>Information</h5>
        </div>

        <div class="form-horizontal ihg-form form-personal-info">

          <div class="form-group ms-form-group">

            <label class="control-label col-xs-2" style="width: 12%;">Name</label>
            <div class="col-xs-2">
              <p class="form-control-static">${administrator.name}</p>
            </div>

            <label class="control-label col-xs-2" style="width: 12%;">Email</label>
            <div class="col-xs-2">
              <p class="form-control-static">${administrator.email}</p>
            </div>

          </div>

          <div class="form-group ms-form-group">
            <label class="control-label col-xs-2" style="width: 12%;">Phone</label>
            <div class="col-xs-2">
              <p class="form-control-static">${administrator.telephone}</p>
            </div>

            <label class="control-label col-xs-2" style="width: 12%;">Location</label>
            <div class="col-xs-2">
              <p class="form-control-static">${administrator.location}</p>
            </div>
          </div>
        </div>
        
        <div class="block-heading">
          <h5>Delegate Info</h5>
        </div>
        
        <table class="table table-hover ihg-table tab-pane table-striped">
        <thead>
          <tr>
            <th>AVATAR</th>
            <th>NAME</th>
            <th>EMAIL</th>
            <th>TELEPHONE</th>
            <th>HOTEL</th>
            <th>SUB-REGION</th>
            <th>JOB TITLE</th>
            <th>Line Manager</th>
          </tr>
        </thead>
        <tbody>
          <c:forEach items="${delegates}" var="delegate">
            <tr>
              <td><img height="50" width="50" src="${ctx.host}/${delegate.avatar}"></td>
              <td>${delegate.name}</td>
              <td>${delegate.email}</td>
              <td>${delegate.telephone}</td>
              <td>${delegate.hotelName}</td>
              <td>${delegate.subregion}</td>
              <td>${delegate.jobTitle}</td>
              <td>${delegate.reportTo}</td>
            </tr>
          </c:forEach>
        </tbody>
      </table>
        
      </div>
    </div>
  </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>

</body>
</html>